package reggie.common;

/**
 * ClassName: BaseContext <br/>
 * Description: <br/>
 * date: 2022/12/1 16:07<br/>
 *
 * @author Xingyingsheng<br />
 * @since JDK 11
 */

public class BaseContext {
    private static ThreadLocal<Long> threadLocal = new ThreadLocal<>();
    public static void setCurrentId(Long id){
    threadLocal.set(id);
    }
    public static Long getCurrentId(){
        return threadLocal.get();
    }
}
